<template>
  <section class="tools-page">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        金额千位分隔
      </div>
      <div class="text item">
        <p v-for="(item, index) in amountList" :key="index">
          {{ item | moneyDecimal }}
        </p>
      </div>
    </el-card>
  </section>
</template>
<script>
import moneyDecimal from '@utils/format'
export default {
  data () {
    return {
      amountList: [122241413, 2488734, 789, 78729428, 78272]
    }
  },
  filters: {
    moneyDecimal: function (v) {
      return moneyDecimal(v)
    }
  }
}
</script>
<style lang="less" scoped>

</style>
